home *** CD-ROM | disk | FTP | other *** search
/ Aminet 30 / Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso / Aminet / gfx / board / chunkyppc.lha / chunkyppc_protos.h < prev    next >
C/C++ Source or Header  |  1999-01-16  |  9KB  |  222 lines

  1. #ifndef CHUNKYPPC_PROTOS_H
  2. #define CHUNKYPPC_PROTOS_H
  3.  
  4. #include <exec/types.h>
  5. #include <graphics/gfx.h>
  6.  
  7. #define BIT16 1
  8. #define BIT16_SWAP 2
  9. #define BIT16_ROT 4
  10. #define BIT16_SWAP_ROT 8
  11. #define BIT24 16
  12. #define BIT24_ROT 32
  13. #define BIT32 64
  14. #define BIT32_SWAP 128
  15. #define BIT32_ROT 256
  16. #define BIT32_SWAP_ROT 512
  17. #define BIT32_ROT_REVERSE 1024
  18. #define BIT32_SWAP_ROT_REVERSE 2048
  19. #define BIT8 4096
  20.  
  21. struct Soff
  22. {
  23.  int x;
  24.  int y;
  25. };
  26.  
  27. struct Buffers
  28. {
  29.  UBYTE *address;
  30.  UBYTE *mask;
  31. };
  32.  
  33. extern "AmigaLib" ChunkyPPCBase
  34. {
  35.  void ChunkyNoffFast_(struct Library *,UBYTE *, UBYTE *, int, int, int) = -30;
  36.  void ChunkyNoffFastest_(struct Library *,UBYTE *, UBYTE *, int, int, int) = -36;
  37.  void ChunkyNoffNormal_(struct Library *,UBYTE *, UBYTE *, int, int, int) = -42;
  38.  void ChunkyFast_(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int) = -48;
  39.  void ChunkyFastest_(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int) = -54;
  40.  void ChunkyNormal_(struct Library *,UBYTE *, UBYTE *, int, int, int, int, int) = -60;
  41.  void ChunkyFastFull_(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, Struct Soff *, int) = -66;
  42.  void ChunkyFastestFull_(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, struct Soff *, int) = -72;
  43.  void ChunkyNormalFull_(struct Library *,UBYTE *, UBYTE *, struct Soff *, struct Soff *, int, struct Soff *, int) = -78;
  44.  void c2p_1_(struct Library *,UBYTE *, struct BitMap *, int, int) = -84;
  45.  void c2p_2_(struct Library *,UBYTE *, UBYTE *, UBYTE *, int) = -90;
  46.  void c2p_3_(struct Library *,void *, void *, int , int , struct Soff * , int , int) = -96;
  47.  void c2p_4_(struct Library *,ULONG *,UBYTE *, UBYTE *, struct Soff *,struct Soff *, struct Soff *) = -102;
  48.  void ChunkyNoffFastHT_(struct Library *,UBYTE *,UBYTE *,int,int,int,int) = -108;
  49.  void ChunkyNoffFastestHT_(struct Library *,UBYTE *,UBYTE *,int,int,int,int) = -114;
  50.  void ChunkyNoffNormalHT_(struct Library *,UBYTE *,UBYTE *,int,int,int,int) = -120;
  51.  void ChunkyFastHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int) = -126;
  52.  void ChunkyFastestHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int) = -132;
  53.  void ChunkyNormalHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,int,int,int,int) = -138;
  54.  void ChunkyFastFullHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *,struct Soff *,int) = -144;
  55.  void ChunkyFastestFullHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *, struct Soff *, int) = -150;
  56.  void ChunkyNormalFullHT_(struct Library *,UBYTE *,UBYTE *,struct Soff *,struct Soff *,struct Soff *,struct Soff *, int) = -156;
  57.  void ChunkyNoffMask_(struct Library *,struct Buffers *,UBYTE *,int,int,int,int) = -162;
  58.  void ChunkyMask_(struct Library *,struct Buffers *,UBYTE *,struct Soff *,int,int,int,int) = -168;
  59.  void ChunkyMaskFull_(struct Library *,struct Buffers *,UBYTE *,struct Soff *, struct Soff *,struct Soff *,struct Soff *, int) = -174;
  60.  void c2p_HI_(struct Library *, UBYTE *, int, UBYTE *, UBYTE *, UBYTE *, UBYTE *, UBYTE *) = -180;
  61. }
  62.  
  63. __inline void c2p_HI(UBYTE *address, int num, UBYTE *bpl0, UBYTE *bpl1, UBYTE *bpl2, UBYTE *bpl3, UBYTE *bpl4)
  64. {
  65.  extern struct Library *ChunkyPPCBase;
  66.  c2p_HI_(ChunkyPPCBase,address,num,bpl0,bpl1,bpl2,bpl3,bpl4);
  67. }
  68.  
  69. __inline void ChunkyNoffFast(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  70. {
  71.  extern struct Library *ChunkyPPCBase;
  72.  ChunkyNoffFast_(ChunkyPPCBase,address,data,w,h,bpr);
  73. }
  74.  
  75. __inline void ChunkyNoffFastest(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  76. {
  77.  extern struct Library *ChunkyPPCBase;
  78.  ChunkyNoffFastest_(ChunkyPPCBase,address,data,w,h,bpr);
  79. }
  80.  
  81. __inline void ChunkyNoffNormal(UBYTE *address, UBYTE *data, int w, int h, int bpr)
  82. {
  83.  extern struct Library *ChunkyPPCBase;
  84.  ChunkyNoffNormal_(ChunkyPPCBase,address,data,w,h,bpr);
  85. }
  86.  
  87. __inline void ChunkyFast(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  88. {
  89.  extern struct Library *ChunkyPPCBase;
  90.  ChunkyFast_(ChunkyPPCBase,address,data,x,y,w,h,bpr);
  91. }
  92.  
  93. __inline void ChunkyFastest(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  94. {
  95.  extern struct Library *ChunkyPPCBase;
  96.  ChunkyFastest_(ChunkyPPCBase,address,data,x,y,w,h,bpr);
  97. }
  98.  
  99. __inline void ChunkyNormal(UBYTE *address, UBYTE *data, int x, int y, int w, int h, int bpr)
  100. {
  101.  extern struct Library *ChunkyPPCBase;
  102.  ChunkyNormal_(ChunkyPPCBase,address,data,x,y,w,h,bpr);
  103. }
  104.  
  105. __inline void ChunkyFastFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  106. {
  107.  extern struct Library *ChunkyPPCBase;
  108.  ChunkyFastFull_(ChunkyPPCBase,address,data,dest,size,bpr,soff,sbpr);
  109. }
  110.  
  111. __inline void ChunkyFastestFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  112. {
  113.  extern struct Library *ChunkyPPCBase;
  114.  ChunkyFastestFull_(ChunkyPPCBase,address,data,dest,size,bpr,soff,sbpr);
  115. }
  116.  
  117. __inline void ChunkyNormalFull(UBYTE *address, UBYTE *data, struct Soff *dest, struct Soff *size, int bpr, struct Soff *soff, int sbpr)
  118. {
  119.  extern struct Library *ChunkyPPCBase;
  120.  ChunkyNormalFull_(ChunkyPPCBase,address,data,dest,size,bpr,soff,sbpr);
  121. }
  122.  
  123. __inline void c2p_1(UBYTE *buffer, struct BitMap *bm, int width, int height)
  124. {
  125.  extern struct Library *ChunkyPPCBase;
  126.  c2p_1_(ChunkyPPCBase,buffer,bm,width,height);
  127. }
  128.  
  129. __inline void c2p_2(UBYTE *buffer, UBYTE *plane0, UBYTE *helpbfr, int PlaneSize)
  130. {
  131.  extern struct Library *ChunkyPPCBase;
  132.  c2p_2_(ChunkyPPCBase,buffer,plane0,helpbfr,PlaneSize);
  133. }
  134.  
  135. __inline void c2p_3(void *chunky, void *bitplanes, int chunkyx, int chunkyy, struct Soff *soff, int bitplanesize, int depth)
  136. {
  137.  extern struct Library *ChunkyPPCBase;
  138.  c2p_3_(ChunkyPPCBase,chunky,bitplanes,chunkyx,chunkyy,dest,bitplanesize,depth);
  139. }
  140.  
  141. __inline void c2p_4(void *chunky, UBYTE *Planar, UBYTE *temp, struct Soff *size, struct Soff *off, struct Soff *screensize)
  142. {
  143.  extern struct Library *ChunkyPPCBase;
  144.  c2p_4_(ChunkyPPCBase,chunky,Planar,temp,size,off,screensize);
  145. }
  146.  
  147. __inline void ChunkyNoffFastHT(UBYTE *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  148. {
  149.  extern struct Library *ChunkyPPCBase;
  150.  ChunkyNoffFastHT_(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  151. }
  152.  
  153. __inline void ChunkyNoffFastestHT(UBYTE *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  154. {
  155.  extern struct Library *ChunkyPPCBase;
  156.  ChunkyNoffFastestHT_(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  157. }
  158.  
  159. __inline void ChunkyNoffNormalHT(UBYTE *address ,UBYTE *data,int w,int h,int bpr,int gfx_type)
  160. {
  161.  extern struct Library *ChunkyPPCBase;
  162.  ChunkyNoffNormalHT_(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  163. }
  164.  
  165. __inline void ChunkyFastHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  166. {
  167.  extern struct Library *ChunkyPPCBase;
  168.  ChunkyFastHT_(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  169. }
  170.  
  171. __inline void ChunkyFastestHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  172. {
  173.  extern struct Library *ChunkyPPCBase;
  174.  ChunkyFastestHT_(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  175. }
  176.  
  177. __inline void ChunkyNormalHT(UBYTE *address,UBYTE *data,struct Soff *off,int w,int h,int bpr,int gfx_type)
  178. {
  179.  extern struct Library *ChunkyPPCBase;
  180.  ChunkyNormalHT_(ChunkyPPCBase,address,data,off,w,h,bpr,gfx_type);
  181. }
  182.  
  183. __inline void ChunkyFastFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr,struct Soff *soff,int gfx_type)
  184. {
  185.  extern struct Library *ChunkyPPCBase;
  186.  ChunkyFastFullHT_(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  187. }
  188.  
  189. __inline void ChunkyFastestFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr, struct Soff *soff, int gfx_type)
  190. {
  191.  extern struct Library *ChunkyPPCBase;
  192.  ChunkyFastestFullHT_(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  193. }
  194.  
  195. __inline void ChunkyNormalFullHT(UBYTE *address,UBYTE *data,struct Soff *dest,struct Soff *size,struct Soff *bpr,struct Soff *soff, int gfx_type)
  196. {
  197.  extern struct Library *ChunkyPPCBase;
  198.  ChunkyNormalFullHT_(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  199. }
  200.  
  201. __inline void ChunkyNoffMask(struct Buffers *address,UBYTE *data,int w,int h,int bpr,int gfx_type)
  202. {
  203.  extern struct Library *ChunkyPPCBase;
  204.  ChunkyNoffMask_(ChunkyPPCBase,address,data,w,h,bpr,gfx_type);
  205. }
  206.  
  207. __inline void ChunkyMask(struct Buffers *address,UBYTE *data,struct Soff *dest,int w,int h,int bpr,int gfx_type)
  208. {
  209.  extern struct Library *ChunkyPPCBase;
  210.  ChunkyMask_(ChunkyPPCBase,address,data,dest,w,h,bpr,gfx_type);
  211. }
  212.  
  213. __inline void ChunkyMaskFull(struct Buffers *address,UBYTE *data,struct Soff *dest, struct Soff *size,struct Soff *bpr,struct Soff *soff, int gfx_type)
  214. {
  215.  extern struct Library *ChunkyPPCBase;
  216.  ChunkyMaskFull_(ChunkyPPCBase,address,data,dest,size,bpr,soff,gfx_type);
  217. }
  218.  
  219. #endif
  220.  
  221.  
  222.